package com.example.practice2023.mapper;

import com.example.practice2023.pojo.Article;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleMapper {
//    Article selectByArticleID(@Param("article_ID") String article_ID);

    List<Article> selectByPage(@Param("index") Integer index,
                               @Param("limit") Integer limit,
                               @Param("article_title") String article_title,
                               @Param("article_status") Integer article_status
                               );
    int selectAllCount(@Param("article_title") String article_title,
                       @Param("article_status") Integer article_status);

    void insert(Article article);

    void deleteById(Integer article_ID);

    void updateById(Article article);

    void setStatus(Article article);

}
